/* 思维导图容器 */
.mindmap-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    position: relative;
}

/* 通用节点样式 */
[class*="node"] {
    position: relative;
    margin: 6px 0;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 800px;
    display: block;
    border-left: 4px solid;
}

/* 层级缩进系统 */
.node           { margin-left: 15px; border-color: #6b75d1; }
.subnode        { margin-left: 35px; border-color: #68c77e; }
.subsubnode     { margin-left: 55px; border-color: #d0a3a3; }
.subsubsubnode  { margin-left: 75px; border-color: #adadad; }
.subsubsubsubnode { 
    margin-left: 95px; 
    border-color: #a696f7;
    font-size: 0.95em;
    padding: 8px 12px;
}

/* 动态交互状态 */
.node:hover, .subnode:hover, 
.subsubnode:hover, .subsubsubnode:hover {
    transform: translateX(5px);
    box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
}

.clicked {
    background-color: #e0e0e0 !important;
    box-shadow: inset 3px 0 0 rgba(0,0,0,0.2);
}

/* 层级连接线 */
[class*="node"]:not(.node)::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 50%;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #666 60%, transparent);
}

/* 内容区域样式 */
.content {
    line-height: 1.5;
    white-space: normal;
    font-size: 15px;
    color: #333;
}

.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

/* 移动端适配 */
@media (max-width: 768px) {
    [class*="node"] {
        margin-left: 10px !important;
        max-width: 90%;
    }
    
    [class*="node"]::before {
        left: -12px;
        width: 8px;
    }
    
    .subsubsubsubnode {
        margin-left: 30px !important;
    }
}

/* 颜色系统 */
.node           { background: #818adf; }
.subnode        { background: #7eda8c; }
.subsubnode     { background: #dfb9b9; }
.subsubsubnode  { background: #c0c0c0; }
.subsubsubsubnode { background: #f0f0f0; }